home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Resource Library: Multimedia
/
Resource Library: Multimedia.iso
/
hypertxt
/
msdos
/
ebksrc
/
cmdln.hpp
< prev
next >
Wrap
C/C++ Source or Header
|
1991-07-30
|
724b
|
42 lines
/*
cmdln.hpp
7-30-91
Command line option parser
Copyright 1991
John W. Small
All rights reserved
Use freely but acknowledge authorship and copyright.
CIS: 73757,2233
PSW / Power SoftWare
P.O. Box 10072
McLean, Virginia 22102 8072
(703) 759-3838
*/
#ifndef CMDLN_HPP
#define CMDLN_HPP
class CmdLn {
char **argv, *options, *opt;
int argc, optEnd;
int argi;
public:
char optCh, optNot, *optArg;
void CmdLnReset(int argc, char *argv[],
char *options);
CmdLn(int argc, char *argv[], char *options)
{ CmdLnReset(argc,argv,options); }
int Argi() { return argi; }
int getOption(void);
void nextCluster(void);
void lookForMoreOptions(void);
};
#endif